#include "MWindow.h"
#include <cstdlib>

void ParseArguments(int argc, char *argv[], int &width, int &height)
{
    if(argc == 3)
    {
	width = std::atoi(argv[1]);
	height = std::atoi(argv[2]);
    }

    width = width <= 0 ? 800 : width;
    height = height <= 0 ? 800 : height;
}

int main(int argc, char *argv[])
{
    int width = 0;
    int height = 0;

    ParseArguments(argc, argv, width, height);
    
    RayTracer::Scene s;
    RayTracer::MWindow w(width, height, &s);
    w.Show();

    return 0;
}

